package com.pany.domain.models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Table;
import javax.persistence.Transient;

import play.db.jpa.GenericModel;

/**
 * 充值记录
 * 
 * @author zengjie
 * 
 */
@Entity
@Table(name = "t_recharge")
public class Recharge extends GenericModel
{
    @Id
    @Column(updatable = false, length = 32)
    private String chargeId;
    
    @Column(updatable = false)
    private Date chargeDate;
    
    @Column(updatable = false, length = 32)
    private String vipId;
    
    @Transient
    private String vipName;
    
    @Column(updatable = false, length = 32)
    private String operatorId;
    
    @Transient
    private String operatorName;
    
    /**
     * 充值金额
     */
    private Double chargeSum;
    
    /**
     * 实际金额
     */
    private Double actualSum;
    
    @Column(length = 255)
    private String remark;
    
    public String getChargeId()
    {
        return chargeId;
    }
    
    public void setChargeId(String chargeId)
    {
        this.chargeId = chargeId;
    }
    
    public Date getChargeDate()
    {
        return chargeDate;
    }
    
    public void setChargeDate(Date chargeDate)
    {
        this.chargeDate = chargeDate;
    }
    
    public String getOperatorName()
    {
        return operatorName;
    }
    
    public void setOperatorName(String operatorName)
    {
        this.operatorName = operatorName;
    }
    
    public Double getChargeSum()
    {
        return chargeSum;
    }
    
    public void setChargeSum(Double chargeSum)
    {
        this.chargeSum = chargeSum;
    }
    
    public String getVipId()
    {
        return vipId;
    }
    
    public void setVipId(String vipId)
    {
        this.vipId = vipId;
    }
    
    public String getVipName()
    {
        return vipName;
    }
    
    public void setVipName(String vipName)
    {
        this.vipName = vipName;
    }
    
    public String getRemark()
    {
        return remark;
    }
    
    public void setRemark(String remark)
    {
        this.remark = remark;
    }
    
    public Double getActualSum()
    {
        return actualSum;
    }
    
    public void setActualSum(Double actualSum)
    {
        this.actualSum = actualSum;
    }

    public String getOperatorId()
    {
        return operatorId;
    }

    public void setOperatorId(String operatorId)
    {
        this.operatorId = operatorId;
    }
    
}
